package com.lab.spring.topic2.messaging;

import org.springframework.context.ApplicationEvent;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: bsceran
 * Date: 5/22/13
 * Time: 12:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class CheckoutEvent extends ApplicationEvent {
    private double amount;
    private Date time;

    public CheckoutEvent(Object source, double amount, Date time) {
        super(source);
        this.amount = amount;
        this.time = time;
    }

    public double getAmount() {
        return amount;
    }

    public Date getTime() {
        return time;
    }
}
